<c:if test="true"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:ui="http://java.sun.com/jsf/facelets">

<ul>
  <nxu:repeat var="action" items="#{widgetProperty_actions}">
    <li class="#{nxu:test(widgetProperty_currentTabAction.id == action.id, 'selected', '')}">
      <ui:decorate template="/incl/action/generic_action_template.xhtml">
        <ui:param name="useButton" value="#{widgetProperty_actionsDisplay == 'buttons'}" />
        <ui:param name="hideLabel" value="#{widgetProperty_actionsDisplay == 'icons'}" />
        <ui:param name="hideIcon" value="#{widgetProperty_actionsDisplay == 'buttons' or widgetProperty_actionsDisplay == 'links'}" />
        <ui:param name="parentTabActionCategory" value="#{nxu:test(empty parentTabActionCategory, widgetProperty_category, parentTabActionCategory)}" />
        <ui:param name="ajaxReRender" value="#{nxu:joinRender(tabsPanelId, nxu:joinRender(tabContentPanelId, widgetProperty_ajaxReRender))}" />
        <ui:param name="addForm" value="#{widgetProperty_addForm}" />
        <ui:param name="useAjaxForm" value="#{widgetProperty_useAjaxForm}" />
        <ui:param name="formStyleClass" value="subWidgetForm" />
        <ui:param name="mode" value="#{widget.mode}" />
        <ui:param name="disableFiltered" value="#{widgetProperty_disableFiltered}" />
      </ui:decorate>
    </li>
  </nxu:repeat>
</ul>

<nxu:repeat var="action" items="#{widgetProperty_actions}">
  <ui:include src="/incl/action/generic_mode_action_template.xhtml">
    <ui:param name="mode" value="after_view" />
  </ui:include>
</nxu:repeat>

</c:if>